class Gallery < ActiveRecord::Base
	set_table_name "gallery"
  
  belongs_to :site, :foreign_key => 'site_id'
  belongs_to :category,  :foreign_key => 'cat_id'
  
  validates_numericality_of :thumbindex, :only_integer => true, :allow_nil => true
  
end
